<?php

//include 'Conexao.php';
include '../dao/PropostaDAO.php';

$propostadao = new PropostaDAO();

if (isset($_POST["idproposta"])) {
	$idproposta = $_POST["idproposta"];
	$result = $propostadao->getPropostaById($idproposta);
}else{
 	echo "Erro";
}

$result->obra = utf8_encode($result->obra);

echo json_encode($result);
?>